//
//  ViewController.m
//  FK_Categories
//
//  Created by 云眼科技 on 16/6/13.
//  Copyright © 2016年 CloudEyes. All rights reserved.
//

#import "ViewController.h"
#import "FK_Categories/FK_Categories_Header.h"


@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    NSString *calculateString = @"ForKid";
    
    CGSize size = [calculateString sizeWithFont:[UIFont systemFontOfSize:13.f] size:CGSizeMake(200, 30) lineBreakMode:NSLineBreakByWordWrapping];
    CGFloat stringWidth = [calculateString widthWithFont:[UIFont systemFontOfSize:13.f]];
    NSLog(@"size = %@,  width = %.2f", NSStringFromCGSize(size), stringWidth);
    
    NSLog(@"md5 = %@", [calculateString FKMd5String]);
    
    NSLog(@"base64 = %@", [calculateString base64EncodedString]);
    NSLog(@"decodeBase64 = %@", [NSString stringWithBase64EncodedString:[calculateString base64EncodedString]]);
    
    NSLog(@"cache = %@   docu = %@", [NSString getCachePath], [NSString getDocumentPath]);
    
}



@end
